package com.demo.service.common;

public class BizException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private Integer errorcode = 0; // 唯一错误码，controller层对错误码做国际化
    private String remark = ""; // 错误码的补充信息，比如哪个客户、哪一行

    public BizException() {
        super();
    }

    public BizException(Integer errorcode) {
        this.errorcode = errorcode;
    }

    public BizException(Integer errorcode, String remark) {
        this.errorcode = errorcode;
        this.remark = remark;
    }

    public Integer getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(Integer errorcode) {
        this.errorcode = errorcode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
